﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true"
    CodeBehind="OrderDetails.aspx.cs" Inherits="FlowersStore.OrderDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>       
        <h2 class="AdminPart">
            Описание заказа</h2>
    </div>
    <div class="fieldsetClass">
        Номер заказа:
        <asp:Label ID="lblOrderNumber" runat="server" /><br />
        Сумма, руб:
        <asp:Label ID="lblTotalPrice" runat="server" /><br />
        Время поступления:
        <asp:Label ID="lblOrderDate" runat="server" /><br />
        Необходимо доставить:
        <asp:Label ID="lblDelivery" runat="server" /><br />
        Статус:
        <asp:Label ID="lblOrderStatus" runat="server" />
        <br />
        <br />
        Адрес доставки:
        <asp:Label ID="lblAddress" runat="server" /><br />
        Сведения о получателе:
        <asp:Label ID="lblReceiverInfo" runat="server" /><br />
        <p id="pRecieverAdInfo" runat="server" />
        <br />
        Сведения об отправителе:
        <asp:Label ID="lblSenderInfo" runat="server" /><br />
        <p id="pSenderAddInfo" runat="server" />
        <br />
        Доп. информация:
        <p id="pAddInfo" runat="server" />
        <br />
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            DataKeyNames="OrderDetails_id" DataSourceID="OrderDetailsDataSource" 
                BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" 
                CellPadding="5" ForeColor="Black" GridLines="Vertical">
            <AlternatingRowStyle BackColor="#FFF8DC" />
            <Columns>
                <asp:BoundField DataField="Product_name" HeaderText="Товар" SortExpression="Product_name" />
                <asp:BoundField DataField="Product_article" HeaderText="Артикул" SortExpression="Product_article" />
                <asp:BoundField DataField="Product_price" HeaderText="Стоимость, руб." SortExpression="Product_price" />
                <asp:BoundField DataField="OrderDetails_quantity" HeaderText="Количество, шт" SortExpression="OrderDetails_quantity" />
            </Columns>
            <FooterStyle BackColor="#CCCC99" />
            <HeaderStyle BackColor="White" Font-Bold="True" ForeColor="Black" />
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <RowStyle BackColor="#DCDCDC" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#FBFBF2" />
            <SortedAscendingHeaderStyle BackColor="#848384" />
            <SortedDescendingCellStyle BackColor="#EAEAD3" />
            <SortedDescendingHeaderStyle BackColor="#575357" />
        </asp:GridView>
        <asp:SqlDataSource ID="OrderDetailsDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:FlowerStoreConnectionString %>"
            SelectCommand="GetOrderDetails" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:QueryStringParameter Name="OrderId" QueryStringField="order" Type="Int64" />
            </SelectParameters>
        </asp:SqlDataSource>

        <asp:DropDownList ID="ddlActions" runat="server" />       &nbsp;
        <asp:Button ID="btnDoAction" Text="Выполнить" runat="server" 
                onclick="btnDoAction_Click" />        &nbsp;
        <asp:Button ID="btnBack" Text="Назад" runat="server" onclick="btnBack_Click" />        
    </div>
</asp:Content>
